<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<% 
	java.util.Date now = new java.util.Date();
	now.getTime();
	java.text.SimpleDateFormat df = new java.text.SimpleDateFormat(
			"M d, yyyy - h:mma");
	String s = df.format(now);
	out.println(s);
	String nombre = request.getParameter("nombre");
	String comenta = request.getParameter("comenta");
	
	java.io.FileWriter fw = null;
	java.io.BufferedWriter bw = null;
	fw = new java.io.FileWriter("texto.txt");
	bw = new java.io.BufferedWriter(fw);
	bw.write("<table width=\"371px\" height=\"63px\" style=\"margin-left:70px; background:url(img/fondoComent.png) no-repeat\">"+
			"<tr>"+
	    	"<td style=\"padding-left:60px\">"+
	    	"<label style=\"color:#900; font-size:14px\">$nombre</label>"+
	    	"<label style=\"padding-bottom:31px; font-size:14px\">&nbsp;$comenta</label>"+
	    	"</td>"+
	    "</tr>"+
	    	"<td style=\"padding-left:60px; color:#999; font-size:13px\">$fecha a las $hora</td>"+
	    "</tr>"+
		"</table>");
	bw.close();
	fw.close();
%>
</body>
</html>